package com.weilan.blog.admin.config;

import com.weilan.blog.base.handler.WeiLanHandlerExceptionResolver;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.HandlerExceptionResolver;

/**
 * @description:
 * @author: 孙 峰
 * @time: 2020/9/25 14:58
 */
@Configuration
public class GlobalExceptionConfig {
    @Bean
    public HandlerExceptionResolver getHandlerExceptionResolver() {
        return new WeiLanHandlerExceptionResolver();
    }
}
